package cn.donting.jme.edit.ex.imp.auto;

import cn.donting.jme.edit.attribute.annotation.Title;
import cn.donting.jme.edit.ex.AutoAttributeLoader;

import java.lang.reflect.Field;

public abstract class AbsAutoAttributeLoader implements AutoAttributeLoader {



    protected String getTitle(Field field){
        Title annotation = field.getAnnotation(Title.class);
        if(annotation!=null){
            return annotation.value();
        }
       return field.getName();
    }
}
